//
//  sendPersonToken.m
//  tcpoctest
//
//  Created by gump on 6/15/13.
//  Copyright (c) 2013 gump. All rights reserved.
//

#import "sendPersonToken.h"

@implementation sendPersonToken

-(void)sendToken:(NSString *)strtoken
{
    //发送  13char(1),38char(1),Token长度char(1), Tokenchar(x)
    
    if (![self CheckLogin]) {
        return;
    }
    
    int l = CHAR_PL * 3 + INT_PL + [strtoken length];
    
    [self initDataByLength:l];
    
    [sb WriteChar:[strtoken length]];
    [sb WriteString:strtoken withLength:[strtoken length]];
    
    [self Package];
}

@end
